import React,{ useState } from 'react'
import './App.css'
import { RouterList } from './router'
import { useRoutes } from 'react-router-dom';

const App:React.FC= () => {
  //生成路由////   
  const RoutesCpn = () => useRoutes(RouterList);

  return (
    <div>
      {/* 使用 */}
      <RoutesCpn />
    </div>
  )
}

export default App
